home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / quicktime / wired movies and sprites / qtwiredsprites / application files / comapplication.h < prev    next >
Encoding:
Text File  |  2000-06-23  |  1.8 KB  |  71 lines

  1. //////////
  2. //
  3. //    File:        ComApplication.h
  4. //
  5. //    Contains:    Functions that could be overridden in a specific application.
  6. //
  7. //    Written by:    Tim Monroe
  8. //                Based (heavily!) on the MovieShell code written by Apple DTS
  9. //
  10. //    Copyright:    © 1994-1997 by Apple Computer, Inc., all rights reserved.
  11. //
  12. //    Change History (most recent first):
  13. //
  14. //       <4>         09/11/97    rtm        merged MacApplication.h and WinApplication.h
  15. //       <3>         08/21/97    rtm        begun adding Windows support
  16. //       <2>         11/27/96    rtm        conversion to personal coding style
  17. //       <1>         12/21/94    khs        first file
  18. //       
  19. //////////
  20.  
  21. #pragma once
  22.  
  23. //////////
  24. // header files
  25. //////////
  26.  
  27. #ifndef __QTUtilities__
  28. #include "QTUtilities.h"
  29. #endif
  30.  
  31. #include <MediaHandlers.h>
  32. #include <Movies.h>
  33. #include <Resources.h>
  34. #include <Sound.h>
  35. #include <SoundComponents.h>
  36. #include <SoundSprocket.h>
  37. #include <TextUtils.h>
  38.  
  39. #include <string.h>
  40. #include <stdlib.h>
  41.  
  42. #if TARGET_OS_MAC
  43. #include <AppleEvents.h>
  44. #include "MacFramework.h"
  45. #include "AppConfiguration.h"
  46. #endif    // TARGET_OS_MAC
  47.  
  48. #if TARGET_OS_WIN32
  49. #include "WinFramework.h"
  50. #endif    // TARGET_OS_WIN32
  51.  
  52. #include "ComResource.h"
  53.  
  54. //////////
  55. // constants
  56. //////////
  57.  
  58. //////////
  59. // function prototypes
  60. //////////
  61.  
  62. #if TARGET_OS_MAC
  63. void                    InstallAppleEventHandlers (void);
  64. pascal OSErr            HandleOpenApplicationAppleEvent (const AppleEvent *theMessage, const AppleEvent *theReply, long theRefcon);            
  65. pascal OSErr            HandleOpenDocumentAppleEvent (const AppleEvent *theMessage, const AppleEvent *theReply, long theRefcon);
  66. pascal OSErr            HandlePrintDocumentAppleEvent (const AppleEvent *theMessage, const AppleEvent *theReply, long theRefcon);
  67. pascal OSErr            HandleQuitApplicationAppleEvent (const AppleEvent *theMessage, const AppleEvent *theReply, long theRefcon);
  68. #endif    // TARGET_OS_MAC
  69.  
  70. // the other function prototypes are in the file MacFramework.h or WinFramework.h
  71.